﻿@{
    Layout = "~/Views/Shared/ListTemplate.cshtml";
}

@section HeadContent
{
    <script type="text/javascript">
            config.autoLoad = false;
            config.remoteSort = true;
            config.pageSize = 50;
            config.panelTitle = '查询条件';
    </script>
    
    @RenderSection("HeadContent", false)

    <script type="text/javascript">
        window.onInitUI_searchTemplate = window.onInitUI;
        window.onInitUI = function () {
            if (window.onInitUI_searchTemplate) {
                window.onInitUI_searchTemplate();
            }

            var formDom = Ext.get('search').child('form', true);
            if (formDom) {
                var searchPanel = new Ext.Panel({
                    title: config.panelTitle,
                    contentEl: 'search',
                    collapsible: true,
                    titleCollapse: true,
                    renderTo: 'searchCt'
                });
                config.searchPanel = searchPanel;
            }
        }
    </script>
}
<div class="x-hidden">
    <div id="search">
        @RenderBody()
    </div>
</div>        
<div id="searchCt" style="margin: 5px;"></div>

@RenderSection("BottomContent", false)